package zuo.algo.data;

public class TreeNode implements Comparable<TreeNode> {

    public TreeNode left;
    public TreeNode right;
    public TreeNode parent;

    public int val;

    public TreeNode(int val) {
        this.val = val;
    }

    @Override
    public int compareTo(TreeNode node) {
        return val - node.val;
    }
}
